
<!DOCTYPE html>
<html lang="en" xmlns:https="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="UTF-8">
  <script>
    function btnAction()
    {
      alert("我是对话框的内容");
    }
  </script>
  <title>Quarkus OAuth2 Client</title>
  <style>
    h1, h2, h3, h4, h5, h6 {
      margin-bottom: 0.5rem;
      font-weight: 400;
      line-height: 1.5;
    }

    p{
      text-align: center
    }

    h1 {
      font-size: 2.5rem;
    }

    h2 {
      font-size: 2rem
    }

    h3 {
      font-size: 1.75rem

    }

    h4 {
      font-size: 1.5rem
    }

    h5 {
      font-size: 1.25rem
    }

    h6 {
      font-size: 1rem
    }

    .lead {
      font-weight: 300;
      font-size: 2rem;
    }

    .banner {
      font-size: 2.7rem;
      margin: 0;
      padding: 2rem 1rem;
      background-color: #0d1c2c;
      color: white;
    }

    body {
      margin: 0;
      font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    }

    .container {
      display: flow;
      width: 100%;
    }

    li {
      margin: 0.75rem;
    }

    .right-section {
      margin-left: 1rem;
      padding-left: 0.5rem;
    }


    .example-code {
      border-left: 0.3rem solid #71aeef;
      padding-left: 10px;
    }

    .example-code h3 {
      font-weight: 200;
    }
  </style>
</head>
<body>

<div class="banner lead">
  Congratulations, you have created a new Quarkus cloud application.
</div>

<div class="container">
  <div >
    <p class="lead">Quarkus OAuth2 Client is ready! </p>
    <p>
    <p>
<!--      <button onclick="window.location.href={config:property('oauth2.server.token.url')}" type="button" id="btn_auth">1.统一认证登录 </button>-->
      <button onclick="window.location.href='https://oauth2.taiji.com.cn/oauth/authorize?client_id=tdfuivue&response_type=code&scope=user_info&state=&redirect_uri=http%3A%2F%2Flocalhost%3A9527%2Fssologin'" type="button" id="btn_authorize">1.统一认证登录 </button>
    </p>
    <p>
      <button onclick="window.location.href='/login/token'" type="button" id="btn_token">2.查询本地缓存的access_token</button>
    </p>
    <p>
      <button onclick="window.location.href='/login/user'" type="button" id="btn_user">3.携带access_token查询用户资源接口</button>
    </p>
    <p>
      <button onclick="window.location.href='https://oauth2.taiji.com.cn/oauth/authorize'" type="button" id="btn_api">4.携带access_token调用一个资源服务器的资源接口</button>
    </p>
    <p>
      <button onclick="window.location.href='https://oauth2.taiji.com.cn/oauth/authorize'" type="button" id="btn_exit">5.退出登录</button>
    </p>
  </div>
</div>
<div>
  <h4>{clientId}</h4>

</div>
</body>
</html>